import turtle
import math

#定义点
x1,y1=66,66
x2,y2=66,-66
x3,y3=-66,-66
x4,y4=-66,66

#绘制
turtle.penup()
turtle.goto(x1,y1)
turtle.pendown()
turtle.goto(x2,y2)
turtle.goto(x3,y3)
turtle.goto(x4,y4)

#计算初始点和终点的距离
distance=math.sqrt((x1-x2)**2+(y1-y2)**2)
turtle.write(distance)
turtle.done()#让程序结束等待，不自动关闭

